<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="format-detection" content="telephone=no">
	<title>分类详情</title>
</head>
<link rel="stylesheet" type="text/css" href="../styles/index.css">
<script type="text/javascript">
	(function (doc, win) {
        var docEl = doc.documentElement,
            resizeEvt = 'onorientationchange' in window ? 'onorientationchange' : 'resize',
            recalc = function () {
                var clientWidth = docEl.clientWidth;
                if (!clientWidth) return;
                if(clientWidth>=750){
                    docEl.style.fontSize = '20px';
                }else{
                    docEl.style.fontSize = 20 * (clientWidth / 750) + 'px';
                }
            };

        if (!doc.addEventListener) return;
        win.addEventListener(resizeEvt, recalc, false);
        doc.addEventListener('DOMContentLoaded', recalc, false);
    })(document, window);
</script>
<body>
	<div class="warp">
		<section class="newList">
			<ul>
				<li>
					<a href="">
						<h3>文章与味道</h3>
						<div class="txtle">
							<div class="fl">
								<img src="../images/temp/logo1.jpg">
							</div>
							<div class="fr">
								<p class="title">陈世美</p>
								<p class="sub-title">研发总监</p>
							</div>
						</div>
						<p class="more">
							<span class="pople"><i class="num"></i>191</span>
							<span class="time"><i class="timer"></i>今日20:30</span>
						</p>
					</a>
				</li>
				<li>
					<h3>从工程师到技术管理，我和研发团队如何在9个月内实现逆袭</h3>
					<div class="txtle">
						<div class="fl">
							<img src="../images/temp/logo2.jpg">
						</div>
						<div class="fr">
							<p class="title">常新居士</p>
							<p class="sub-title">研发总监</p>
						</div>
					</div>
					<p class="end">
						<span class="pople"><i class="num"></i>191</span>
						<a href="">阅读文章和实录 > </a>
					</p>
				</li>
				<li>
					<a href="">
						<h3>从工程师到技术管理，我和研发团队如何在9个月内实现逆袭</h3>
						<div class="txtle">
							<div class="fl">
								<img src="../images/temp/logo3.jpg">
							</div>
							<div class="fr">
								<p class="title">常新居士</p>
								<p class="sub-title">研发总监</p>
							</div>
						</div>
						<p class="more">
							<span class="pople"><i class="num"></i>191</span>
							<span class="time"><i class="timer"></i>今日20:30</span>
						</p>
					</a>
				</li>
				<li>
					<a href="">
						<h3>从工程师到技术管理，我和研发团队如何在9个月内实现逆袭</h3>
						<div class="txtle">
							<div class="fl">
								<img src="../images/temp/logo3.jpg">
							</div>
							<div class="fr">
								<p class="title">常新居士</p>
								<p class="sub-title">研发总监</p>
							</div>
						</div>
						<p class="more">
							<span class="pople"><i class="num"></i>191</span>
							<span class="time"><i class="timer"></i>今日20:30</span>
						</p>
					</a>
				</li>
			</ul>
			<p class="loading"></p>
			<p class="noMore">--我们是有底线的--</p>
		</section>

		<footer class="footer">
			<nav class="nav">
				<ul>
					<li class="active">
						<a href="">
							<span class="navA"></span>
							<p>发现</p>
						</a>
					</li>
					<li>
						<a href="">
							<span class="navB"></span>
							<p>圈子</p>
						</a>
					</li>
					<li>
						<a href="">
							<span class="navC"></span>
							<p>阅读</p>
						</a>
					</li>
					<li>
						<a href="">
							<span class="navD"></span>
							<p>我</p>
						</a>
					</li>
				</ul>
			</nav>
		</footer>
	</div>
</body>
<script src="../js/jquery-1.9.1.js"></script>
<script type="text/javascript">

  /*下拉加载更多*/
  $(function(){
  		var end=1;//为1时，下拉才加载更多
  		var i=0;//测试使用，判断加载多少次
  		var li='<li>'+
					'<a href="">'+
						'<h3>从工程师到技术管理，我和研发团队如何在9个月内实现逆袭</h3>'+
						'<div class="txtle">'+
							'<div class="fl">'+
								'<img src="../images/temp/logo3.jpg">'+
							'</div>'+
							'<div class="fr">'+
								'<p class="title">常新居士</p>'+
								'<p class="sub-title">研发总监</p>'+
							'</div>'+
						'</div>'+
						'<p class="more">'+
							'<span class="pople"><i class="num"></i>191</span>'+
							'<span class="time"><i class="timer"></i>今日20:30</span>'+
						'</p>'+
					'</a>'+
				'</li>';

        $(window).bind("scroll",function(){
        	if($(document).scrollTop()>0){

        		if($(document).scrollTop() + $(window).height() > $(document).height() - 100 && end != 0)// 接近底部100px
		            {
		            	end=0;
		                $('.loading').show();
		                setTimeout(function(){
		                    if(i>2){
		                    	end=0;
		                    	$('.loading').hide();
		                    	$('.noMore').show();
		                    	return false;
		                    };
		                    $('.newList ul').append(li);
		                    $('.loading').hide();
		                    i++;
		                    end=1;
		                },1000)
		            }

        	}
            
        });
  })
</script>
</html>